fixing js error when nothing is found
adding option to return the tags instead of rendering them
cast as array so there are no merge errors
update blog view