Update popover.js

Hi, just added an example for the .fromTemplate() method in the docs