Replace experimental JavaScript calls

The ```contains()``` and ```startsWith()``` methods are experimental ECMA6 additions that are currently only supported by Firefox. I replaced them with calls to ```indexOf()``` so that Chrome, IE, etc. can see the schema docs.