made the visualiser work in firefox