adding http server access to cache (unstable), added example JS client