update switchable add function 

fix the ie bug  caused by insertBefore parameter is null