Making application modular with requirejs