Jquery Loop Over Array Php Functions Stringent