goals before jquery connecting