Creating an error handler that automatically defines variables on the fly by checking for an &#039;Undefined Identifier&#039; error.