simple assertion library for javascript