Fix javascript in goal partial. Thanks Blair.