Updates to javascript documentation