Pretty late answer but none of the above helped my case and was something different
while referring the javascript file type="text/javascript" was missing in the legacy application i was working
below one worked and breakpoints were hitting as expected