Update observe.js

Fixes docs