Remove jQuery dependency using a simple polyfill.