Add tasks using AJAX