code: function findPosition(array, id) {
      var position = -1;
  
      for(var i = 0, len = array.length; i < len; i += 1) {
          if(array[i].$id === id) position = i;
      }
  
      return position;
  }
docs: FirebaseArray helpers