Add support for post page layout JS callback