changed createLazyFile to only issue xhr requests when the file is ac…

 …cessed (fixes issue #1127)