pull JS/CSS out into separate files, cleanup