JavaScript interface assertion library