beginning to modularize the codebase with RequireJS