function shiftElement(aElements, iOldIndex, iNewIndex) {
		aElements.splice(iNewIndex, 0, aElements.splice(iOldIndex, 1)[0]);
	}
Shifts an element from an old index to a new one within the array of elements.

@param {string[]} aElements - Array of elements
@param {int} iOldIndex - Old index of the element
@param {int} iNewIndex - New index of the element