Php Add Object To Array Js Slice String