Convert to a jQuery plugin

* Convert to a plugin
* Add a default load event listener for backwards compatibility
* JSHint cleanup