Add javascript simulation of the newTask functionality.