[finishes #54142901] JS error display logic, dynamically position popover