fixing a bunch of js bugs and actually reaching into object now