Why is it so much fun to feel afraid?

As Halloween fast approaches, a new study has examined the fine line between having fun and feeling afraid.