fixed date diff on print page

fixed karma configuration for TravisCI