adapting for all web browsers