update javascript and add utils