Scrolls images into view with javascript and CSS