Why this script tag wrapper approach rather than creating a separate template file and view for the popover?