Fix javascript compilation support.