Fixed temp files bug that made JSAnimation slow

Fixed bug in htmlwriter.py from updated version of JSAnimation that produced a bunch of temp files and slowed down the speed at which JSAnimations were created.