Don't use String.prototype.contains()

It doesn't seem to be supported everywhere. Fixes #7