With strict mode enabled there were a couple of exceptions being raised from missing var definitions.
Also made one minor change to the way the method variable is defined to uppercase the final string instead of a method that may return null and subsequently raise an exception.
With strict mode enabled there were a couple of exceptions being raised from missing
var
definitions.Also made one minor change to the way the
method
variable is defined to uppercase the final string instead of a method that may returnnull
and subsequently raise an exception.