adds js for all thumbnail animations