Moved code to add new task to utils.js
utils.js should have all js general functions