copied some code to play with clojurescript