Internal Server Error only on Admin Side

Check your server’s error log for the exact details of the 500 error:

Do you remember (or can you otherwise identify) exactly where you entered the javascript code?