splitting off js file from index.html