Disabling user panel JS in offline mode for unprivileged users