made plates display on the fly with js