Added cross browser flex support