fixing some JS for tags attacher