Create a web application that connects to a brain-computer interface device, such as an Emotiv headset, and utilizes JavaScript to visualize and analyze real-time brainwave data. Provide users with an interactive and fascinating experience that explores the relationship between technology and the human brain.