How to load js file on ionic

I am trying to use Firebase.getAsArray, I include it on my index.html:

  <script src="lib/firebase.js"></script>
    <script src="lib/firebase-as-array.min.js"></script>
     <!-- AngularFire -->
      <script src="lib/angularfire.min.js"></script>
       <script src="js/services.js"></script>

when I am trying to use it I get

ionic.bundle.js:26794 ReferenceError: getAsArray is not defined at Object. (http://localhost:8100/js/services.js:14:12)
I understand the I need to load this on ionic v1.7, Is any way to load it with ionic way?