updated rest.js connection option