Update gallery.js

They are a mistake in the name of function updateSope. I changed to updateScope