[refactor] cleaned input.js