cljs support

I added the necessary cljx stuff.
Seems to be working fine in clojurescript.

I don't think I'll be using this library after all, so feel free to ignore this pull request if you want! ;-)