Create legend include
Change CSS and JS