some changes to js