Fix issues with cljs implementation
Assertions were misbehaving. Removed for now.

Throwing exceptions instead of using assertions.