Fix cross browser compatibility issues

I noticed that the changes I made on the widget didn't look right on browsers other than chrome so I found a solution that should work across all major browsers.