added support for web scatter plots
minor changes
merged kshitij's changes