The browser should offer some kind of permission system (like with the GPS sensor) that would ask the user if a website has permissions to access the vibrate API.
It's just like using location information. There are cases where it might be appropriate, such as web-based chat, or webmail. But there are many more cases where it would not be appropriate.