Restructure JS files.