added analytics code, cleaned up unused js libraries