moving init.cc to NAN