minify JavaScript, add test generator for JavaScript, miscellaneous code fixes, update Readme