Update js/main.js

trying to fix require