Refactored to use routes compatable with GA
Changed callback
Fixed bugs in pantry.js