Mocks added for the PageRules and getJson function in RouterLocal changed to an AJAX call