fix for shortcode JS var