if it's an external .js file, you don't put markup in it. So get rid of the <script></script> in library.js and you'll be fine.

Oh, and for some reason if you put the including <script...