Fixed the broken JS for creating a task.