update javascript config