indexOf = function(array, searchElement) {
    for (var i = 0, len = array.length; i < len; i++) {
      if (array[i] === searchElement) {
        return i;
      }
    }
    return -1;
  }
@name indexOf
@private

@description
indexOf polyfill. Kinda sorta.

@param {array} array Array to search in.
@param {string} searchElement Element to search for.

@returns {int} Index of search element.