 
 (defmethod emit :var
   [{:keys [info env] :as arg}]
-  (emit-wrap env (emits (munge (:name info)))))
+  (let [n (:name info)
+        n (if (= (namespace n) "js")
+            (name n)
+            n)]
+    (emit-wrap env (emits (munge n)))))
 
 (defmethod emit :meta
   [{:keys [expr meta env]}]


(defn resolve-var [env sym]
  (if (= (namespace sym) "js")
    {:name (name sym)}
    (let [s (str sym)
          lb (-> env :locals sym)]
      (cond


(defn resolve-existing-var [env sym]
  (if (= (namespace sym) "js")
    {:name sym :ns 'js}
    (let [s (str sym)
          lb (-> env :locals sym)]
      (cond
