JS Error When Locking a Topic