randori to js bug fixes