Fixed bad check for undefined in javascript. Fixes #1819
Merge pull request #1821 from daviddavis/rails_root

Fixing RAILS_ROOT
Merge pull request #1822 from daviddavis/1819

Fixing bad check for undefined on activation keys page