Clean up js formatting

cleaning up JS formatting before making code change.
Updated X509 element name to look for namespaces

ADFS namespaces this field when handing out tokens.  This searches for
the correct namespace when using a thumbnail
Merge pull request #11 from IntertechInc/master

Updated X509 element name to look for namespaces