Added some js code comments.