added new html stuff for territory examples, renamed rndr functions to data_render_XXX