Comment on JavaScript callbacks issue

The issue regarding the need to pass an anonymous function which calls
the desired callback instead of passing the callback itself has been
explained in the comments; the code remained unchanged.