use new plugins conventions

Change the plugin to extend the jQuery prototype rather than just be a class on a namespace.

@ruggeri, can you check this over asap? A fixed version needs to be up by the end of day before students start reading for tomorrow