a javascript library help you to control the widget drawn in canvas just like a common html element