Why is localize_script text not localized?
Tidy how variables are passed in

Work on migrating from echoing in the footer to wp_localize_script