change java script comment to mako comment for support empty topics