REPL is only valid for javascript updates.

https://github.com/ariya/phantomjs/issues/11744
Handle script language in debug mode too.

https://github.com/sodabrew/phantomjs/commit/f919121a3518613e7a066adb9425c8c101b8b5ab