added remotes.js to appcache
better error checking if remote's not loaded