Not need an seperate file, add this code to your script.js or <script>
script.js
<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.
hidden