add crossbrowsing support