added layout engine: detects current browser and adds classes to html.