Append script tags instead of using eval.