Added module exports to work as node module