js app: fix uidestroy