javascript assert functions that feel like nunit