Support --script flag on hcomp.sh to generate only js to require templates for debugging
Also compress templates before compiling them to save some bytes