Resolved 2 errors that come up if this file is executed under 'use strict' mode. First was a "Uncaught SyntaxError: Delete of an unqualified identifier in strict mode." caused by the delete of the tmp variable. The second was r3 not being defined because of a misplaced comma.