cleanup & adding displaying diff to index.html