Add dependent destroy relationships to favorites for goalie/player/team.
Move JavaScript into document ready function.