Fix small typo in JavaScript docs