Use String::indexOf instead of String::startsWith

String::startsWith isn't available in the browser process yet.