Nevermind I think I figured it out. Assuming the code above, you can write in javascript:
<script type="text/javascript"> var JavascriptBlah="<%=blah%>"</script>
This will pass the blah in c# to the JavascriptBlah on the client side. Then you can manipulate on client side.