Wouldn't it be an option to basically chain the "events" in the local storage queue with crytographic hashes (kind a like a block chain). You can then fairly easily verify modifications somewhere in the list of events.
It wouldn't make it entirely impossible, but much more complicated.
A hacker does yes, but can a kid recreate the hash quickly without the teacher noticing? If some script appear on the net to automate that, Khan academy could react by changing their hash frequently.