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.
Merge branch 'patch-12' of https://github.com/Kevincredible/pier-1 into Kevincredible-patch-12
Merge branch 'Kevincredible-patch-12'