Turned the JS into a namespace.