[nim] Moving more towards promises in the dom js
[nim] Testing logic in index.js. Mocking dom elements
[nim] Tested creation of visualisation objects and linking of the visualisation ids to the ui elements