Updated Javascript documentation

Change-Id: Idcf6a8f288a92323d714d29e4d95e30c26f4f8fa