changes made to align with w3c spec
changes to vibration.java to align with w3c, changes to vibration.js for backwards compatibility
changes to how 0 is getting added to array in order to align with w3c spec