Made newpage additions use jQuery