fixed deviceorientation.js