Allow requirejs to load routes as a module

- Encapsulate in a require module