I want to have a statement as
$(myVar).click(function(){
// Do some stuff
});
This statement is in the main .js file that is included on every page. I want to then have myVar defined in different files on different pages and then the statement above becomes active.
How do I do that?