code documentation according to mozilla js guidelines