removed jquery dom ready as we aren't using jquery and it is not neccesary...added closing tag for script as short tags don't work.