Updated Javascript documentation