-- added css
-- refactored JS function
-- two diagrams are drawing