Create main.js

Main file containing the bulk of the JavaScript to be used