using require.js to define modules and startup