Consistent use of `throw`.

Adhering to the `throw` syntax used by `Ember` and other JavaScript
projects.