you should get cache value from server side not client (Javascript)
So it should be:
var name = '<%=Cache["Name"] %>';
btw. your test.html should be *.aspx site that way asp engine can parse it.
Or if it's completely different app to pass data you can not use cache !
One way to do this POST
or GET
methods.