Js testing

This branch is setup to write the tests for the Javascript modules incoroporated in DynamicsVisualizer
It cannot work until that bug I mentioned is solved. I can mark a TODO here.