Add some handy libs to the js module

There is a chance this breaks the sandbox's sandboxiness. I have not attempted to prove/disprove this.