Splitting JS files into stages index.html