Javascript Model Driven View