Minor fix

1. Moved ajax mocks to separate file for demo page.
2. Corrected object to be stringified in ajax request.