Only have the necessary javascript

Expose a function that's parameter is jQuery