Make sure main.js is loaded before calling require.

When calling require from within HTML, then don't use data-main, but instead
load main.js via a require call.

See here: http://requirejs.org/docs/api.html#data-main