Replacing javascript for bar with clojurescript