As the whale surfaces the people watching on the boat cheered and clapped. Which sentence uses commas correctly to fix the error in the sentence?

As the whale surfaces, the people watching on the boat cheered and clapped.

As the whale surfaces, the people watching on the boat cheered and clapped.