jsdoc(bug fix)- added var keyword in function pretreat