Create tasks via ajax