Javascript and HTML for Hexagon