New syntax for connect + fix js tests