Not need an seperate file, add this code to your script.js or <script>
This 1st text is visible
This 2st text is visible
This 1st text is hidden!
This 2st text is hidden!
To make the copied text hidden, just add hidden.
See the Pen Copies.js Sample by LIGMATV (@LIGMATV) on CodePen.