J/psi production as a function of event multiplicity in pp at 500 GeV