update for regex and tidy.js.