Revert "use request.xhr? with newer Sinatra"

This reverts commit cc6b4c055f262b9a5cb5c26e4daf610c550c7d71.