Remove jQuery dependency using a simple polyfill.
Fix: reliable cross browser support (proper fix this time).
Merge pull request #2 from fbender/cross-browser


@fbender  thanks. Good points.