Fix JS compilation failure.