Fix cross-browser incompatibilities and extend SAS lifetime.