Create main.js

adding js file for the main layout