It looks like kite-scratch-mode
is a mode derived from javascript-mode
, so you might just be able to use M-x kite-scratch-mode to enable the kite-scratch
bindings in your javascript file.
I'm sure it's not designed for that, though, and so you might consider asking the author for a minor mode which supplies bindings similar to those of swank-js
or js-comint
.