Add attribution and fix JSDoc inconsistency