Observer implementation for Javascript.