added return statement to createDiv function and deleted parameter in getNumMatches function