add js/sph code