My Javascript Function Is Just Displaying Code On My Html Page Stack

My Javascript Function Is Just Displaying Code On My Html Page Stack