adds script for on scroll animation