I see, you are trying to paste Java script into a cell.
Using the standard copy/paste method you are always going to have some sort of table pasted. I am not sure exactly what you are trying to accomplish, but I'm not familiar enough with a Java/Excel transfer to offer much assistance. I'll let other, more experienced Excel masters chime in here.
If you want to put all the lines into a single cell, have your cursor IN THE CELL before doing the paste.
To put your cursor in the cell, double-click on the cell, then do your paste. It will place all the lines within the single cell. If you just select a cell, then it will paste each line in its own row.