app/ webroot/ <- We put libraries in webroot js/ jamal/ dist/ jamal.js jamal_packed.js vendors/ <- This is just for fun, to make it look like cakePHP jquery/ jquery.js plugins/ jquery.require.js <- I use this file to include other JS files from within the JS environment vendors/ <- Putting js in the app vendors directory lets us use php in the js! think i18n! js/ controllers/ somes_controller.js jamal_packed_mvc/ some_packed.js <- your MVC js all packed in one file models/ some.js views/ somes.js app_controller.js <- common functions for controllers? app_model.js <- ditto? app_view.js <- ditto?