Page include not working with Brooklyn upgrade

Replace this line:

$(function() {

with this:

$(“.nx-page”).one(“pageload”, function() {