JavaScript generator for aster.