Updated wp_register_script to wp_enqueue_script