reorder js calls for blockui and openpopupwq