done -needed to move doRevert in file for satisfying JSLint