fix JS errors
Merge branch 'master' of github.com:picketlink/picketlink
extract and store the token in a global variable
store correct token value