Modify plugin to be a jQuery plugin compliant