From Sergey: Several changes (including bugfixes) in JS graphics

The most important: Added possibility to move/resize of statbox, title and color palette, also while histogram content is being updated (can be tested with example.htm)