fixed error from commenting out function in index.html