Js testing

This branch is setup to write the tests for the Javascript modules incoroporated in DynamicsVisualizer
@moorepants Here, this line carries out an ajax request, and takes some time to execute.
SInce it is asynchronous, the `specs` are executed before ajax is complete, and fail. 

I have commented out those tests, till I figure out this.