small fixes & code cleanup:
- push logger before `h5bp`
- fixed missing early return for 301
- better jsdoc