 
 (defn start-brepl [& options]
   (println "Starting Browser REPL ...")
-  (repl/repl* (rhino/repl-env)
+  (repl/repl* (browser/repl-env)
               {:output-dir "target"
                :optimizations :none
                :cache-analysis true
                :source-map true}))
 
-(defn -main [args]
+(defn -main
   "If invoked on the CLI, compile cljs and start a node repl"
+  [args]
   (compile-cljs)
   (build args)
   (start-node-repl))

              :verbose true})
    (println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds")))

(defn start-node-repl [& options]
  "Start a Node Repl"
  (println "Starting Node REPL ...")
  (repl/repl* (node/repl-env)
              {:output-dir "target"

            [cljs.repl.rhino :as rhino])
  (:gen-class))

(defn compile-cljs
  "Compile Cljs compiler for faster src compilations"
  []
  (do
    (compile 'cljs.repl.node)
    (compile 'cljs.repl.browser)
    (compile 'cljs.core)))

(defn watch
  "Watch for Cljs src changes"
  [main & options]
  (println "Watching for changes ...")
  (b/watch "src"
           {:main main
