I personally do not have enough experience to make an infinite entity system (or well, mostly on the rendering side/shader calculations), but yes, that is possible, until you reach the maximum amount your GPU is able to render, which will take a couple billion references - you just need to know the right way to do that; oh and you can do that in JavaScript too if you please.