Filming Jaws included months of shooting on the ocean and a malfunctioning shark