embed fix  for loading scripts dynamically.