Updated JavaScript documentation