I've just moved the Javascript and CSS into separate files from the
actual html code for the sake of clarity.