fixed a minor bug parsing regex in jspretty and some minor diff bugs