fixing error in loading of page json type

the type property of the page was not getting passed to json.php because
it was still referring to context of pageloader for type property.
PageType used to have the pageloader functionality