Read the comments to understand the code.
Add an id to the so that i can read the inner content using
Add Id to the so that i can set values to the raw using
from the JSP so that the script is triggered every time the page loads
what to do is defined here