J/$\psi$ production at high transverse momenta in p+p and Au+Au collisions at sqrt(s_{NN}) = 200 GeV