Updating javascript