Relax $ expression parsing

I jumped the gun with my earlier version and missed another common use 
of $ in JS, "$.".  

To better match Genshi's handling of $ expressions, relax the expression
parser such that $ followed by "invalid" characters will be rendered
literally.  Valid characters consist of anything that can begin a variable
or braced expression ({, _, and a-z).