Updated JS to handle grid/list view changes
Merge pull request #101 from Shopify/grid-list-views

Updated JS to handle grid/list view changes