tweaks to make parser line up with the parser for js
ELSECOLON for if, ELSE for cases
make module order deterministic
use reliable escaping code from dyoo