updated docs - javascript