Javascript documentation updated