Add support for cross-browser compatibility

Not all browsers have been tested. Tested and working of Firefox and
Chromium.