respect window scroll x
add onresize handler, closes #4