The way Spielberg approached the story works so good because it is so scary, the way we don't see the shark, the shots of the water accompanied with iconic music to create suspense.
To contrast that, the story and the likable characters give the ending such satisfaction.