Rewrite the new functions to be less verbose.
Fix a typo in JsDoc.