removed jQuery dependencies, added logging on failed session checks