cleaned up index.html and some parts of the directives