binding query object directly to html dom