Adding Javascrit scroll to animations