reverted js changes