Database backed model binding for JavaScript