copy taken from files

about to tweak - this JS works with visualiser.html