Added jsdoc documentation