reg as jquery plugin

Register as a jquery plugin