Create main.js

This is the JavaScript for the APP