You're going to scream when I tell you.
It's bad line breaking.
At the end of the anonymous function that creates Task you say;
return
{
init: initialize
All you have to do is make it clear that more is to come by placing the opening bracked after the return on the same line;
return {
init: initialize
.....
If you use a helper like jshint/jslint this will be caught by them and they will point it out.
Happy coding