Cosmos overcome 3-1 deficit to tie Jacksonville in 8-goal thriller