Update main.js

first draft js