Rearranging JS files