Migrated slider to js, migrated old hackish css layout to flexbox, separated js into different files