Client side code for chalice apps