Extracted plugin, fixed init popover anchor bug, formatting