using the cover-function from jscov 0.2