moved scripts to footer; added preview header; added styles