Removed iOS rotation zoom bug

Fixed in iOS 6
Separated jQuery and theme JS into two separate functions