reverting js