Changed implementation to use XMLHttpRequest as recommended at (chrome developer resources)[https://developer.chrome.com/apps/app_external]