updated, tested version, working with overflowed divs fine.