Bug fixes and compatibility

Bugs and compatibility issues fixed for cross-browser functionality.
Changes made to styling.