cut out dead code, reduce js includes, copy updates