some js improvements for comments