better browser compatibility (tested on Chrome 26, IE7, IE8, Firefox 19),
orientationchange support