Various JS scripts for testing and iteration