Added switch, Removed AJAX

Replaced the AJAX call and PHP file with a javascript switch. Updated
ReadMe.