re-arrange JS files for production