make it work better for firefox