is there a method to detect the mobile devices orientation, since I'm not using appMobi ( the app is intended as HTML5 browser game )? I tried comparing WindowWidth vs WindowHeight and assume that as long the width is smaller, the device is in portrait mode. Comparison made on every tick. Not working. Any thoughts?