regenerate JS files