Update edit-task.js

Supposedly, this is a better way of doing the same thing. This way you can have many function that run on 'didInsertElement' and also you are not overriding the default didInsertElement hook (in case there is something important going on in there).

See http://eviltrout.com/2014/06/03/jquery-component.html