Auth fixes to javascript stuff.  What a giant pain