Update connection.js

add ca property