Update TaskScheduler.js

code formatting