create tasks with Ajax