moved device-motion.js