fix JS generation for aspect method