Why not use AJAX (XMLHttpRequest) and get the string formed directly from server in your Javascript? I am not too sure that we can traverse through a Dictionary item in Javascript as you want to. AJAX approach would be simple and easy. Try it!
AFAIK, This is the closest thing to what you want via Dictionary way:
Javascript Dictionary[
^] - sample uses .NET code but is quite simple to understand.