Added jQuery Functionality to the script itself without requirement in HTML