Initial commit of JS that I did not write.