Remove global 'app' variable from scripts