added css, tidied js