javascript for app