Image Comparison with Javascript

How can I compare images when using javascript language?

I have found opencv4nodejs but all the examples are written in Java and Ruby.
Has anyone tried opencv4nodejs in javascript?
Please give me an idea about this.