Fixed closing of modal for non-homepage
Merge pull request #332 from topcoderinc/tom-I-116980-challenge-details-urls

Fixed closing of modal for non-homepage