Diagnostic test scalp EEG fixed- ready for JS implementation