Removed Legend-Styling Responsibilities from index.js

Since legend is not a canvas element, leave styling to the css.