Cross browser polyfills, changed <main> element to standard <div>