Fixed jQuery caching related memory leak

jQuery caches (unique) strings, so it's better to construct the element using API rather than giving jQuery new (potentially different because on the message) string to cache.