Register and enqueue a script in WordPress
<?php wp_enqueue_script( 'square-main', get_stylesheet_directory_uri() . '/js/scripts.js', array( 'jquery' ), null, true );