address javascript bug in GB with jquery locator string

Fixed a bug in JS related to jQuery locator strings.