Corrected bad spelling of SVG elements in javascript. Corrects all kinds of trouble.