Merge pull request #19 from dmgts/master

Fixed bug with dynamic width
Elements go to the offsetWidth they were right before being sticky, Added dynamic width element in demo.html
Changed the behavior of dynamic width