transitioning to js
some clean up on core
histogram functions added
fix plot in core and migrated scatter 3d to js
port to js complete