Javascript mvvm