moved voice recognition code to simulator.js