Initial import

This is my first push of code to GitHub, made as a pull request for easier review
Yeah, it has to be in the event listener. The array will *always* be empty when the top-level code runs. Will add a comment.