J/psi production via fragmentation at HERA