added json support with html template (jquery updated)