integrate fix from MDL-31365
properly escape customs
move respond to hosted version

see MDL-37436 for discussion
switch iOS script to Scott Jehl's accelerometer-based one (and hosted)

https://github.com/scottjehl/iOS-Orientationchange-Fix

Possibly can eliminate this script soon as it's fixed in iOS6:

http://adactio.com/journal/5802/
add newlines for readability
proper type declarations for scripts
not necessary to declare empty arrays