text: 
  var win;
  var dom;
  
  try {
  
      if(!window) {
      	window = global || window;
      }
  
  	win = window;
  	dom = window['document'];
  } catch(e) {
  	win = Ti.App.Properties;
  }
  
  
  if(dom == undefined) {
      module.exports = Array;
  }
  
  
  Array.prototype.contains = function(obj) {
      var i = this.length;
      while (i--) {
          if (this[i] === obj) {
              return true;
          }
      }
      return false;
  }
  
  
  Array.prototype.remove = function(val) {
      for(var i=0; i<this.length; i++) {
          if(this[i] == val) {
              this.splice(i, 1);
              break;
          }
      }
  }