the script javascript for app