Fix cross-browser incompatibilities and extend SAS lifetime.
Merge pull request #401 from cpoulain/master

Fix cross-browser incompatibilities and extend SAS lifetime.