index.js to receive data from php