Abstracting view css and js; spectrum changes

Took the style and scripts and put them into separate file. Moved script
tags to the end of the html body tag where appropriate.