adds js for the first two animation from the preview