update JS
update app js function