jQuery code didn’t run on my plugin

Check the DOM for the theboxjs.js and see if it is loaded correctly (check the output path). If not then you have path issues.

Try using admin_enqueue_scripts instead of admin_init for loading scripts.

You might also have conflict in your script. When writing scripts for WP try to avoid $ and use jQuery instead.