Update main.js

Change the requirejs call to require. requirejs is meant to just load arbitrary scripts, the require call behaves differently