Made it into a jQuery plugin.
Fixed typo in script load