added js-test-driver and jasmine unit testing, 100% coverage