Removed jQuery dependency

I was wondering why this needed to be a jQuery plugin and could not be used with plain ol' vanilla JS.

Have a look at the vanilla JS version, with optional jQuery plugin, if jQuery is available.
Also, my editor cleaned up some whitespace as a bonus.