Fix page scripts after update from Greg