Cleanup plus begging js version of plot