Include indexOf for  < IE8