Sync before changing Menu to jQuery plugin