namespaced the JS; got rid of most globals
Namespaced this thing to death