If you had that hardware there's no need to mess around with GitHub, you just copy/paste the code from that page into the right hand side of the Web IDE, wire up as suggested, and it'd work.
However it seems the Neurosky Mindwave Mobile 2 is a completely wireless solution - so realistically I don't think that code is going to work for you.
What you'd need to do is either find some information on the Bluetooth protocol used online and try and implement it in Espruino (we could help with that), or to actually connect with an app like 'NRF Connect' on your phone and see if you can figure out how it works yourself.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ahh - so that code is there to talk to this hardware by the look of it: https://store.neurosky.com/products/eeg-tgam
If you had that hardware there's no need to mess around with GitHub, you just copy/paste the code from that page into the right hand side of the Web IDE, wire up as suggested, and it'd work.
However it seems the Neurosky Mindwave Mobile 2 is a completely wireless solution - so realistically I don't think that code is going to work for you.
What you'd need to do is either find some information on the Bluetooth protocol used online and try and implement it in Espruino (we could help with that), or to actually connect with an app like 'NRF Connect' on your phone and see if you can figure out how it works yourself.