bp: fix minor js error

Error: TypeError: a.match is not a function