adds google analytics js code to header.html and removes unused js code