Completed and tested Javascript version. Renamed test output files.