reworked `input.js`
reworked `input.js`

This update removes several functions that weren't necessary. Also made the code easier to read by reworking the functions by using helper libraries that are doing the redundant part of this file.

bentonam/fakeit