   "
   ([driver q]
    (let [el (query driver q)]
-     (js-execute driver "arguments[0].scrollIntoView();" (el-to-js el))))
+     (js-execute driver "arguments[0].scrollIntoView();" (el->ref el))))
   ([driver q param]
    (let [el (query driver q)]
-     (js-execute driver "arguments[0].scrollIntoView(arguments[1]);" (el-to-js el) param))))
+     (js-execute driver "arguments[0].scrollIntoView(arguments[1]);" (el->ref el) param))))
 
 (defn get-scroll
   "Returns the current scroll position as a map

;; Javascript
;;

(defn el-to-js
  "Turns machinery-wise element ID into an object
  that Javascript use to reference existing DOM element.


  (def el (query driver :button-ok))

  ;; the first argument will the an Element instance.
  (js-execute driver \"arguments[0].scrollIntoView()\", (el->ref el))
  "
  [el]
  {:ELEMENT el
