Modern browser compatibility

Checked in latest versions of Safari, Chrome, Firefox so far.