Solution:1
You might try the following. Notice I consolidated the enqueue and the register functions. The enqueue function will register the script for you, so you don’t need both. That would be an unlikely reason for this not working, but you really only need to use register function if you’re doing so globally and enqueuing in different functions.
function my_script_enqueuer() {
wp_enqueue_script( 'my-script', plugins_url('js/my-script.js', __FILE__), array('jquery'), 0.2, true );
}
add_action( 'wp_enqueue_scripts', 'my_script_enqueuer' );