Moved inline js to separate file for Settings page