Update JSDoc, throw RangeError correctly.

And fixed a stray tab.