update inputmanipulation.js