new svg graphics and javascript color functions