xhr functions for GET and POST (currently meant for Chrome only)