generator for gaiajs