Removing input checking from click event, the model/controller should be handling input validation
Using require.js to load scripts