Try and catch in javascript?

Trying to get try, catch and finally exception handling working in a js script. “try” seems to be recognised but “catch” and “finally” throw an error “Unexpected token”.
Is there a unity version I should be using or am I just doing something dumb.

finally won’t work, but catch does:

try {
	var foo = 10/0;
}
catch (err) {
	print (err.Message);
}

–Eric

cheers, catch is now working.