adding scattering as full JS

I will try to work out how to migrate to our model.