Djokovic puts Serbia ahead before Canada hit back