Create main.js

first version of the js for this project