var myObject = {} $(document).ready(function(){ function abc() { console.log("ABC"); } myObject.abc = abc; });