fix javascript in manager app page to be array