wp_enqueue_script causes page to vanish

You don’t need to enqueue jquery if it’s already being referenced in my ‘my-script’. Also you’re running php within php, so you can change this:

"<?php echo get_template_directory_uri() . "/my-script.js"?>",

to

get_template_directory_uri() . "/my-script.js",