Missing return according to jsdoc
Typo in assignment