simple assertion library for Js (client or server)