Added JavaScript writer, uncommented remaining JS tests, fixed up some of the syntax, optimized Ruby's map loop a little.