[PR] Update footer script

* Use `wp_footer` action to avoid the need to overwrite the parent theme footer template
* Pass `jQuery` as a parameter to an anonymous function to use `$`