Add encapsulation of jQuery popover plugin in basicPopover.js;
Fix some problems.