JavaScript that calculates the area a various shapes.