Scope / module.exports problem