Php Set Empty Array Javascript Function Expression