It would be great if I could scan my current js and build the jquip based on that. Actually, there should be a tool that removes all unnecessary code that's never called. Might be hard or impossible to get that working reliably though.
[1] https://github.com/mishoo/UglifyJS/blob/master/lib/parse-js....