HTTP request hijacker for Rails apps which use a client-side JS app as a frontend