rewrite public.js in ClojureScript