reversion js