J/psi production at high transverse momenta in p+p and Cu+Cu collisions at sqrt sNN = 200 GeV