Adding jsdoc comments.
Fixes formatting for JS syntax