I try to create an object that inherits from EventTarget and also has its own constructor. The only way I found is as follows:
class MyObjectTemplate extends