Ensuring compatibility with non-HTML5 browsers