fixed ignore metric javascript