use new plugins conventions

Change the plugin to extend the jQuery prototype rather than just be a class on a namespace.