Fixed bug in data.js "deleteTask" and "getTaskIndex" methods