change to module style using require.js