Added missing 'ng-app' attribute validator
Made more robust