added a script.js

I added a js script and added the document ready part.