moved browser specific functions to browser_specific.js