fixed escaping on string variables using json filter

Added in proper escaping using the Shopify built in JSON filter.