Create main.js

initialize main program