Fix WebIDL definition.

- Update toString to handle prototype output.
- Define some meta properties on prototype and constructor.