added accept/decline challenges javascript functionality