added inputEngine.js