From http://www.sitepoint.com/use-html5-vibration-api/