       (comint-send-string espresso--js-process
                           (concat "(" moz-repl-name ")\n"))
       (espresso--wait-for-matching-output
-       (inferior-moz-process) espresso--js-prompt-regexp 1))
+       (inferior-moz-process) espresso--js-prompt-regexp
+       espresso-js-timeout))
 
     ;; Sanity check
     (when (looking-back espresso--js-prompt-regexp

  (require 'imenu)
  (require 'etags)
  (require 'thingatpt)
  (require 'ring)
  (require 'moz nil t)
  (require 'json nil t))

(eval-when-compile
  (require 'cl)
  (proclaim '(optimize (speed 0) (safety 3))))

;;; Constants

  (interactive (list (this-command-keys)))
  (call-interactively (lookup-key (current-global-map) key))
  (let ((syntax (save-restriction (widen) (syntax-ppss))))
    (when (or (and (not (nth 8 syntax))
                   espresso-auto-indent-flag)
              (and (nth 4 syntax)
                   (eq (current-column)
                       (1+ (current-indentation)))))

         (indent-according-to-mode))))

;;; Syntax table and parsing
