splitting the jQuery plugin from the javascript action to execute it