some minor code style correction

Changes:
Add some minor code cleaning (add missing coma, and undefined variable init) based on jshint