Update scripts.js

Fixed a dumb bug that affected the sliders on window resize (which is relevant for tablet users switching orientations), among other tweaks and an IE11/Firefox/IOS7 caching fix.