added down and dirty js to validate session.
Merge pull request #12 from ryanande/develop

added down and dirty js to validate session.