fix loadAjax anchor check overwriting anchor (typeof check always failed)