Added JS unit testing to framework