fix css selector parsing with quoted commas

Used a better regular expression, also I put the regular expression outside of the getComputedStyle() function to the enclosing createWindow() so that it only gets compiled once (per window in this case). Added a test case for it using the supplied example from @espretto in #541