Fix documentation, typo, and javascript assignment gotcha