Apply factory pattern and make objects on click
svg <text> change