Create main.js

Main js file