Fix JS errors so that snowman images are changing correctly