When I put //TODO: comments in .js files, this are not included in the Task List.
Hi,
You might consider using the JsParser Addin for Visual Studio, this addin offers the functionality which you need.
Take a look at the first features available at List of Features available in JSParser
Alternatively you can also check this discussion on Stack overflow which deals with the same scenario