Removed old add constructor code from javascript interface. Replaced with clober in plugin.xml