reverted js