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.
Merge pull request #13 from rwblackburn/master

Resolved 2 errors caused under 'use strict' mode.