api: js genenerator support callback params