Add a checkBrowserCapability function, refactor some of the flexbox syntax