Tabs & Resize

dynamic resize using flexbox (ie10 doesn't support it yet)
tabs, using localStorage
refractoring main.js