reverted js changes for jquery