fixes quoted commas in css selectors, reported in issue #541

I put the regular expression outside of the getComputedStyle to the enclosing createWindow so that it only gets compiled once (per window in this case).