Make usable as a node module