return html and json for jsfiddle