Add `wp_print_scripts( array( 'jquery', 'customize-preview' )  )` here instead of `wp_enqueue_script's` above and I think I'd be okay with this change. You can even remove the crazy-high priorty of `1000` from `wp_footer`, because `wp_print_scripts` takes care of dependencies, and only outputs anything if the scripts and their dependencies weren't outputted before.

I'm basing this on [Scribu's article on optimal script loading](http://scribu.net/wordpress/optimal-script-loading.html) and a close reading of the [WP_Dependencies](https://github.com/WordPress/WordPress/blob/55fb020e84fd46bd56668facd1f3a74be1776cbf/wp-includes/class.wp-dependencies.php#L36) and [WP_Scripts](https://github.com/WordPress/WordPress/blob/bf759fe2072563dc74864bbb310e1c6faa8aae50/wp-includes/class.wp-scripts.php#L19) classes, which [wp_print_scripts](https://github.com/WordPress/WordPress/blob/88e8c501ab67a10482dfc873bb8bc4d9795b1a0d/wp-includes/functions.wp-scripts.php#L21) uses.