further js visualization issues with download solved. WIP