generate nodejs method definitions