downgrade jquery to 1.x series for ie8 support

also a few other changes for IE8 support