Made fixes to make code IE8-compatible

Also removed jQuery (which was never used anyway)