Js Fill Empty Array Php Functions String