My opinion:
If person who asked questionthe OP mentioned that he prefersthey prefer pure JS solution, then solutions should highlight pure JS answer, with optional answers using another libraries (adding information on why they should be used for this task).
Otherwise, the best possible answer should be given, in either pure JS or any commonly used, easily integrable library.