Prototype of face recognition in JS.