Make mock ajax calls work from test.html.