Fixed syntax error.

catch is a reserved word, invoking a function with
this name causes "SyntaxError: missing name after . operator"
error in some parsers.