improved ban/unban JS