New graphs

Over break, I moved all of the common javascript to "shared".  This is stuff that I use for many JS projects, so I can update it all simultaneously.