check langs in ajax requests