Avoid duplicate code
Avoid duplicate code

Inside ```getData``` there are the same functions twice. Now there a
function named ```renderData``` that append the html and call the
callbacks

CKGrafico/jQuery_HandlebarsJS,CKGrafico/jQuery_HandlebarsJS,basz/jQuery_HandlebarsJS,basz/jQuery_HandlebarsJS