changes to js
reverted to js older