Fixed JS comp errors.