jscsrc: add jsdoc rules, fixup code