Make JSHint happy

JSHint wants to escape `[` within `[]` in Regexps so let's do that.