add: support indexOf for IE8. refactor: indexOf and splice.