Merge pull request #257 from sellout/joins

arbitrary JS in filters
Fix JS output for MapReduce.