Update TaskScheduler.js

removing inheritance from EventTarget