I have implemented a jQuery plugin that will take care of namespacing for us.
if you don't know what is namespace please read it from here
take a look at the code below. and see how it works. you can get the code from jsfiddle as well
$.namespace("liteframe.actions.controller"); //OR this way. $.namespace(["liteframe.actions.controller","cake.action.jump"]); //OR this way. $.namespace("liteframe.actions.controller","cake.action.jump"); // now they are available to the us. liteframe.actions.controller = function(){ // some code here }; cake.action.jump = function(){ // some code here };