Want to update text in <p> element

Want to update text in <p> element

Hello, I am a  JQuery newbie. I have been trying to perform a simple task of updating the text in <p> element after the page loads. Here is a very simple script and code I am using
  1. <!DOCTYPE html>
  2.  <html>
  3.       <head>
  4.          <style>
  5.              p { color : blue; margin : 8px; }
  6.          </style>
  7.          <script src = "jquery-1.10.1.min.js"></script>
  8.          </script>
  9.          <title>My JQuery Tests </title>
  10.      </head>
  11.       <body>
  12.          <p>  My JQuery Tests On This Page </p>
  13.          <script src = "application.js"></script>
  14.      </body>
  15.   </html>
I have downloaded the jquery-1.10.1.min.js and placed it in the directory where the above file is present. The application.js is as follows
  1. $(document).ready(function()i{
  2.     ("p").text("Changed the Text through JQuery ! Huuray");
  3. });
I have tried to write the script in the original file but it didn't work. Please help me understand where I am going wrong. 

Thanks.