fixing index.html and karma tests