If Not Empty Array Javascript Append Html