Set up jQuery export handling, mostly