fixed some crossbrowser issues
refactored addCss