More functions.recognize in javascript