Common code used by PhET Interactive Simulations HTML5 sims