Update observable.js

Made trigger an internal function