5 tips for using AJAX in WordPress – this long post summarizes many best practices for using JS in WP. It’s older (2010) but solid for helping you to understand using JS for progressive enhancement, but not for full-featured JS applications. Taught me to use wp_localize_script.