Tailor-made middleware layers for Layman.js