trying to fix bug in safari
update to switch branchs
convert to karma testing
add timeout for checking if width is too wide (safari)
cleaning up slabify function