update

update javascript code