revoke changes in index and javaScript