udpated the js