Removed ref

Removed parameters by ref and changed from 30 to 300 spheres to align to
Dart demo; Removed namespaces for a smaller js output.