Php Set Variable To Empty Array Javascript Append To String