Added some JavaScript comments.