Use require.js to modularize.  Fixes script async loading bug on iPhone.