View model based ui for javascript