Built out a significant amount of the JS library

- Still need to test it! Ahhh