Brain computer interface in Javascript