clean up, update to nan v1.3.0

update to match the examples given in the nan 1.3.0 docs.
1.0.1