Functional optimization of the jastrow wave function for liquid 4He