Moved input JavaScript from main to inputs.js
Move input JS into inputs.js from main.js