Basic file loading functionality over XHR