Instantiate method in module.exports