Using nan for node 11 compatility