fix extends in JSsrcGen