added browser support with sync ajax call