fixes #2776 ajax reorder menu items on html page working once in ie9

Fixed the issue and committed code for review, please check it