reverting js changes to working version