Sample JavaScript data-binding using Observer pattern (MVC)