From http://stackoverflow.com/questions/5767325/remove-specific-element-from-an-array
Remove specific element from an array
if (index > -1) { array.splice(index, 1); }