Change main.js to a define statement instead of redundant require statement