Fix cljs/compile warnings

There is no `format` function in ClojureScript -- construct strings
manually.

Also, update call to deprecated function