refactored scheduler
refactored scheduleTasks, built js files