reverted js to original state