Remove jQuery dependency using a simple polyfill.
Fix: reliable cross browser support (proper fix this time).