saving JS files locally