js app: add check for app folder