Revert "Wrapping call to indexOf on Array which is not supported in all brwosers"

This reverts commit 48eccee34a501455aa06df5cc7d82dcc35de3c36.
Adding removeAttr for numbers fix; courtesy of @janza