async jQuery localization with cookie