Start adding some tests and add jscoverage.