Bubble Matrix using JS