updates to javascript