Tidied up CSS, cleaned up JavaScript