Pre-testing the app functionality in browser, using ajax and Php