Update observe.js

checked for module.exports