Works on 0.11.4+
Fix of missing scope.
Updated NAN to 0.3.0.
Merge pull request #50 from kkoopa/master

Patch for 0.11.4+