Not sure if this will help. Trying out with not encoding the ampersand in the
"script" tag