Fix typo on JavaScript documentation