Php Array Find String Javascript Methods