move lib to a node module