Rejigging of JS files