Now append the generated code into the dom instead of using Function()