added comments for javascripts