preparing to accept data from php ajax call