Php Create New Array Js Functions