Framework for writing JavaScript map-reduce jobs for Hadoop