Better task list in build

I guess javascript is all nutty again but not sure we should write code as if it is ;-)