Numerical schemes for conservation laws via Hamilton-Jacobi equations