library to load the jQuery, jQueryUI and TouchPunch JS from CDN only if it hasn't already, and create the menu
這裡只顯示彼此間有代碼差異的版本。 顯示所有版本。
workaround for jQueryUI issue where z-index:101 for dialog is sometimes not set (caused dialog to be locked behind the z-index:100 modal overlay)
fixed undeclared variable issue, Promises cleanup