Updating QPage to move javascript includes into footer and add head javascript files separately.