improving position calculation using scroll posiiton as well

fixing mess with offsets on demo page