Updates to javascript