code: function convertArrayToObject(array) {
        var temp = [];
        array.forEach(function (text) {
          temp.push({
            index: text
          });
        });
        return temp;
      }
docs: This function converts an array of strings to object of strings with key "index"
  @param array
  @returns {Array}