Create main.js

main JavaScript page