removed dependency on browser resize events

works in modern browsers, needs testing with matchMedia (and
addListener) polyfills. breaking changes to API