fixed ajax load

use in_array to build conditional, instead of duplicating