Update recognition.js