Add check to onscroll functionality to ensure element is visible
Merge pull request #10 from alexcason/master

Add check to onscroll functionality to ensure element is visible