Move the popover initialisation inside the `$(document).ready` block. This is will make sure that the element that the popover is initialised on is actually available in the DOM.
Fixed issue #631 by moving the variable initialization to the document ready block.