more idiomatic error handling
use native ECMAScript functions in Node

so don't use underscore when not needed
Merge pull request #4 from timkuijsten/err

more idiomatic error handling and type checking