Reorganizing

Organizing the code nicer. I also split the JS into a separate file and
created an empty css file, which I also linked.