Face recognition prototype in Javascript