Collection of compatibility JS for cross-browser support