I found the problem after a lot of trials. Hopefully, this will be of use to some guys facing this frustrating problem.
RightClick>View Source is the code what the browser sees to render the page. However, that is not all. The page could also have other HTTP requests to css ans js files. That was what was happening in my case. The error was in an imported(NOT INCLUDED ; had it been included the error would have been on the code) js file. And the line number reported was relative to that js file .
In retrospect ,however, i find this to be correct, since the imported files are stored separately in the browser cache, as they are independent HTTP requests to the web server. And hence should not appear in the RightClick>View Source code.
POTENTIAL PROBLEM:
However, though in my case the line number in the individual js file,reported, was found to be correct, that may not always be true.
In most enterprise applications, js and css es are often minified to reduce the byte footprint. Hence the js file that you may be looking at , in your IDE, will not be the same as the browser sees. Hence the line numbers could then be different. The line numbers will be w.r.t the compressed version of the file that the browser sees.
IE JAVASCRIPT DEBUGGING:
I found this page , which promises to offer debugger environment(albeit ,not sophiscticated) in the IE environment.
http://www.jonathanboutelle.com/mt/archives/2006/01/howto_debug_jav.html
I didnt try it, as I dont have the complete Office package installed.