I found something on stackoverflow that works for prototype but I'm using jquery. Any ideas what I need to call instead?
Check if Javascript is Enabled (Serverside) with Rails
function confirmJavascript()
{
// Assuming you are using Prototype
new Ajax.Request('/JavascriptController/confirm');
}