code: function _uniq(a) {
          var ret = [];
          var len = a.length;
          while (len--) {
            var itm = a[len];
            if (ret.indexOf(itm) === -1) {
              ret.unshift(itm);
            }
          }
          return ret;
        }
docs: http://stackoverflow.com/a/25120770