added more variables to demonstrate the types of info you can get via JavaScript
modified message to address multiple headers returned