Refactor StatusMenu JS code. Fix Move test