Compile EGS packages to JavaScript.