Remove unreachable code.
Fix JS UI running program after compile error.