How To Add A Code Snippet To A String In Javacsript