Fixes a global leak.
Updates dev dependencies and adds grunt test/dev.