Php Array Find String Javascript Methods For Objects