Prevents removal of var declarations under various conditions (required for compilation with closure compiler in its most strict mode).
Removed extraneous debug log statement.
Merge pull request #4 from johanatan/master

Prevents removal of var declarations under various conditions.