workaround for no random support in mongodb working...grossly
removed jquery deferred