better example of module pattern for se with require.js