changed assertion object, refactored source code to use Underscore