Fix orientation bug.

Change ‘orientationchange’ and resize to 
‘onorientationchange’ and ‘onresize’