Cross browser tweaks. Fixes #27