A set of useful directive callbacks for page.js and the ascot library