Switch to min versions of js + fix logout bug