mvc for javascript