Updated JS that appears to work. Previous version got borked after the login screen changed.
Merge pull request #20 from ianmorris101/master

Updated JS that appears to work. Previous version got borked after the l...