ReferenceError: ionic is not defined