new rserve.js with improved error handling