Properties of the effective Hamiltonian and homogenization of the Hamilton-Jacobi equation