'replaceMenu' in beforeOpen causing select: to lose ui.target

Closed #58