fix buggy vibration.js
add Compass and Math
modified
modified