Embedding of scripting into applications