reworked some browser quirks