Simple model binding for javascript