Map Reduce Backward Compatibility for Javascript