@sbrunner: according to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith
"startsWith" is only supported by Firefox.

Perhaps you should use indexOf instead?