Folder classes does not exist in the latest version so you will need to change codebase to
$urlforcodebase = $CFG->wwwroot.'/lib/DragMath/applet';
Clean cache/browser history before testing...
Attached the file structure of 0.7.7.1 and chkjre version of 0.7.8.1
