Cam Cook scored a go-ahead touchdown with 4:29 left and then the Jacksonville State defense ended two drives to secure a 24-21 victory over Middle Tennessee.