Fix #287, Using the app resource loader from Google. Modified it to send headers with the xhr call