Fixed CORS for firefox
Browser detection