Separated scripts to include with wp_enqueue_script for better compatibility