Fix "ReferenceError: Bob is not defined" for correct use of module.exports