Fixing error in snapshot grunt code snippet