Add the cdata and the script element
Fix the api on the stop element