   directory."
   [js]
   (if-let [url ^URL (-url js)]
-    (last (string/split (.getFile url) #"/goog.jar!/"))
+    (last (string/split (.getFile url) #"\.jar!/"))
     (str (random-string 5) ".js")))
 
 (defn write-javascript

;; Dependencies
;; ============
;;
;; Find dependencies from goog js files on the classpath. Eliminates
;; the need for closurebuilder.

(defn build-index
  "Index a list of dependencies by namespace and file name. There can


   With IJavaScriipt objects in hand, calling add-dependencies will
   produce a sequence of IJavaScript objects which includes all
   required dependencies from the Closure library and ClojureScript,
   in dependency order. This function replaces the closurebuilder
   tool.

   The optimize function converts one or more IJavaScripts into a
   single string of JavaScript source code using the Closure Compiler
