Splited into html, js, and css files.
Improved path drawing method to avoid overlap.