messing around with mvc model and js