Refactored usage of browser compatibility libraries.