max_patches: Updated max patches to utilize new changes in generated js and also to record appropriately (which they had not been doing!). I also added a main_synthesis patch that mirrors the main_processing one.
src: Fixed some test file bugs.
src: Updated the js generator to work better with record~