adds precache script, controls to start animation