I want to embed a link to a controller action in my page so I can use it from javascript. Something like
var pollAction = \'/Mycontroller/CheckStatus\'
Have you tried something along these lines?
var pollAction = '<%=Url.Action("CheckStatus", "MyController") %>';