Added tests and cleaned index.html