JavaScript model binding with a twist