Split code into modules (RequireJS)