IMHO, adding hardcoded JS in the admin_footer or admin_head is as bad as inline. I was being lazy here. I'll add a .js file and properly enqueue it before merging the changes.