fixed bind for clojure/javascript discrepancy