{% if Product is not empty %}
<script>
$(function() {
{% if Product.seo_title is defined and Product.seo_title is not empty %}
$('title').html('{{ Product.seo_title }}');
{% endif %}
{% if Product.seo_keywords is defined and Product.seo_keywords is not empty %}
$('meta[name=keywords]').remove();
$('title').after('<meta name="keywords" content="{{ Product.seo_keywords }}">');
{% endif %}
{% if Product.seo_description is defined and Product.seo_description is not empty %}
$('meta[name=description]').remove();
$('title').after('<meta name="description" content="{{ Product.seo_description }}">');
{% endif %}
});
</script>
{% endif %}