JS: add gd and main comments