Fixed pass facilities JS array to PHP