fix(client): Replace calls to [].indexOf with _.indexOf for IE8 support.

fixes #1263