fix missing affectation
adapt comment format for JSDoc