Update index.js

minor changes on propertyObserver