perf and minification improvements
simplify code

negligible perf differences between native and custom indexof
functionality (http://jsperf.com/indexof-native-vs-custom-function/2)
don't warrent additional code and potential for differences in browsers