Error in basic View ejs example

Copy-pasting the existing code will result in "task" being the index of the task, which is baffling to anyone not fluent enough in jQuery to realize that $.each always passes the index to the first argument of the callback, even when there's only one argument.