some changes to the js