Add screen orientation change as part of the JS resize function