added comments in javascripts