At the risk of zombifying a thread...
I did this on a PW2, 5.4.2 using KUAL/kterm rather than SSH and it went fine.
The search_bar.js file mod was a little bit different on mine. Rather than discreet lines all entries were on one line with no line breaks (I edited with Notepad++). Also, the code that needed to be changed was a bit different.
const STORE_ID = 'app://com.lab126.store';
Paperwhite 2, 5.4.2:
I replaced (store) with (browser) and crossed my fingers... Coolio.
Slick little hack.