Update sphere.js

sphere routine