It’s easy to add comments to JavaScript files so that Visual Studio can help us out by showing Intellisense for our functions and variables. Get the document here:
Adding Intellisense to external js files (Word Document)
Everything Web™ Since 1995