Update Shopify.formatMoney function

Fixes https://github.com/Shopify/shopify-themes/issues/286

- Check to see if Shopify.formatMoney is defined.
- If not, define it.

@carolineschnapp @mpiotrowicz @stevebosworth 
clean up spacing here, can the condition be moved to a new line?