   (-> (jsloader/load url)
       (.addCallbacks success err)))
 
+(defn error-string [error]
+  (str error.name ": " error.message ". Check console for stack trace."))
+
 (rf/register-handler
   :initialize
   (fn [db _]

                                               namespace-text (extract namespace-text)))
            (catch js/Error e
              (.error js/console e)
              (rf/dispatch [:alert "Error generating extern" (str e.name ": " e.message ". Check console for stack trace.")])
              db)))))))

(rf/register-handler

    (let [url (get db :url-text)]
      (if (string/blank? url)
        (do
          (rf/dispatch [:alert "Blank Field Error" "Please enter the url of your JavaScript file to be loaded"])
          db)
        (do
          (load-script url
