bumped to Ti SDK 3.1.0.GA
changed the signature of JS map functions from map(doc, emit) to map(doc) by binding the emit() function as a global in the context