And ended with a burglar murdering the homeowner.
From the "Jack and the Beanstalk" entry about the story at Wikipedia:
"""Outwitting the giant, Jack is able to retrieve many goods once stolen from his family, including a bag of gold, an enchanted goose that lays golden eggs and a magic golden harp that plays and sings by itself. Jack then escapes by chopping down the beanstalk."""
I think you're both right, the 1807 version published by Tabart added the moral justification for the killing of the giant which is still common today. But the story may originate in pre-history oral tradition, where it's anyone's guess whether or not Jack is a remorseless violent thief.