Polyfill for flexbox, in jquery form