got rid of repetitive scripts in index.html header