Cleaner JS code
Changed JS indentation slightly
Added unused toggle commands for thank/agree, and improved documentation