Modal widget and javascript injection for popover and tooltip

Added Modal widget
Implemented some javascript helpers in order to make popover and tooltip work