http://stackoverflow.com/questions/7346827/javascript-find-array-index-with-value
Anonymous
Worse is better.