Change to use embedScript, note: not working