Improve validation of JSDoc