Fix declaration duplication in jquery and jquery ui