Fix undefined ENTITIES_MAP in $.render()