generate jsb code