working on JS based visualisation