JavaScript vs Ruby connector