Fix js error on pages without comments